package com.lushuan.ch11_springboot_test.demo.threadpool;


import java.util.Arrays;

public class ThreadDemo extends Thread{

    private String name;

    public static void main(String[] args) {
        System.out.println("args = ");

        new ThreadDemo("线程1").run();
        new ThreadDemo("线程2").start();
    }

    public ThreadDemo(String name) {
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println(name);
    }


}
